<script setup>
  import {ref} from 'vue'

  let count = ref(0);
  let fun = function(){
    ++count.value;
  }
</script>

<template>
  <div>
    <input type="button" v-on:click="fun()" v-bind:value="'加一'"/>{{ count }}
  </div>
</template>

<style scoped>

</style>
